function [] = train_test_compare_results(train_set, test_set, nbclass, c, epsilon, kerneloption, kernel, A, B)

meas_test =  test_set(:, 1:size(test_set, 2)-1);
out_test = test_set(:, size(test_set, 2));

min_class = min(out_test);
if min_class == 0
    out_test = out_test + 1;
end;

meas_train =  train_set(:, 1:size(train_set, 2)-1);
out_train = train_set(:, size(train_set, 2));

min_class = min(out_train);
if min_class == 0
    out_train = out_train + 1;
end;

[testerror1vall, testerror1v1, testerror1v1PWC] = test(meas_train, out_train, meas_test, out_test, nbclass, c, epsilon, kerneloption, kernel, A, B);
[trainerror1vall, trainerror1v1, trainerror1v1PWC] = test(meas_train, out_train, meas_train, out_train, nbclass, c, epsilon, kerneloption, kernel, A, B);

fid = 1; % aktualne okno
disp('|       |                method                |');
disp('|  set  |  1 vs all  |   1 vs 1   |     PWC    |');
fprintf(fid,'| train |  %8.5f  |  %8.5f  |  %8.5f  |\n', trainerror1vall, trainerror1v1, trainerror1v1PWC); 
fprintf(fid,'| test  |  %8.5f  |  %8.5f  |  %8.5f  |\n', testerror1vall, testerror1v1, testerror1v1PWC);